<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('student')} > ${i18n.getMessage('birthDays')}">
</@showTitle>

<div style="padding: 10px 0; text-align: center">
	<form onsubmit="return false;">
		<strong>${i18n.getMessage('month')}</strong>: 
			<select name="month" style="width:55px">
				<#list 1..12 as month>
					<option value="${month}" <#if month?string('00')=now?string('MM')>selected</#if>>${month?string('00')}</option>
				</#list>
			</select>
			<select name="programId">
				<option value="0">All</option>
				<#list programs as program>
					<option value="${program.id}">${program.name}</option>
				</#list>
			</select>
		<input type="button" value="${i18n.getMessage('studentList')}" onclick="searchForm(this.form, 'student/doSearchBirthDayByProgram.sgt')" class="w100 button_style"/>
	</form>
</div>

<script>
	searchForm = function(form, action) {
		form.action = action;
		popupSubmitForm(form); 
	}
</script>